<script setup>
import tabbar from '@/components/tabbar/index.vue'
import { ref } from 'vue'
</script>

<template>
  <div class="home-container">
    <van-nav-bar safe-area-inset-top :border="false">
      <template #title>app模板</template>
      <template #right>
        <span class="customer-btn">
          <img src="./img/customer.gif" />
        </span>
        <van-icon class-prefix="cashier" name="notice" size="24"></van-icon>
      </template>
    </van-nav-bar>
    <tabbar />
  </div>
</template>

<style lang="less">
.home-container {
  background: url(./img/main-bg.png) no-repeat;
  padding-bottom: 50px;
  background-size: 100% 45%;
  color: #fff;
  .customer-btn img {
    height: 28px;
    line-height: 0.8;
    margin-top: 0.5px;
    display: inline-block;
  }
  .pointer {
    font-size: 26px;
  }
  .van-nav-bar {
    background-color: transparent;
  }
  .van-nav-bar__title {
    color: rgba(255, 255, 255, 0.6);
  }

  .main-content {
    padding-left: var(--van-padding-md);
    padding-right: var(--van-padding-md);
  }
  .home-features-box {
    display: flex;
    justify-content: space-around;
    p {
      margin: 8px;
    }
  }
  .home-features-box-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
  }
  .home-banner {
    box-shadow: 0 0 14px #ccc;
    height: 130px;
    .van-swipe-item {
      background-color: #39a9ed;
    }
  }
  .revenue-banner {
    .van-swipe-item {
      height: 100%;
    }
  }
  // 营收
  .revenue-container {
    margin-top: 15px;
    height: 120px;
    box-shadow: 0 0 14px #ccc;
    background-color: #fff;
    padding: 5px;
    .revenue-content {
      border: 1px solid #eee;
      height: 100px;
    }
    h3 {
      color: var(--van-black);
      margin: 0;
      padding-bottom: 5px;
      font-size: 14px;
      line-height: 1;
    }
    .van-swipe-item {
      color: #000;
      font-size: 20px;
      text-align: center;
    }
  }
  // 菜单
  .van-grid {
    margin-top: 15px;
    color: var(--van-blue);
    .van-grid-item__content {
      padding: 5px;
    }
  }
}
</style>
